package com.my.test.spring.util;

/**
 * Created by Administrator on 2017-4-20.
 */
public class ThreadLocalUtil {

    private final static ThreadLocal<MyContext> holder = new ThreadLocal<MyContext>();

    public MyContext get(){
        return holder.get();
    }

    public void set(MyContext context){
        holder.set(context);
    }

    public void remove(){
        holder.remove();
    }
}
